<template>
    <div>
        <div class="box-con">
          <div class="title">
            <span>商品描述</span
            ><img src="../../assets/images/列表箭头.png" width="10" alt="" @click="back"/>
          </div>
          <div class="box-con-b">
            <div class="lll">
              <img src="../../assets/images/我的客户.png" width="60" alt="" />
            </div>
            <div class="rrr">
              <p>{{ goodslist.title }}</p>
              <p>
                <span style="color: #989898">下单时间</span>
                {{ goodslist.orderTime }}
              </p>
              <p>
                <span style="color: #989898">下单人</span>
                {{ goodslist.orderUserName }}
              </p>
            </div>
          </div>
          <div class="box-footer">
            <div>
                <div v-show="goodslist.status==20" @click.stop="gotoEvaluation(goodslist.serialNo)" >评价</div>
                <div v-show="goodslist.status==30" @click.stop="gotoEvaluation(goodslist.serialNo)">查看评价</div>
                <div v-show="goodslist.status==0" @click.stop="gotoinfo(goodslist.serialNo)" >发货</div>
                <div v-show="goodslist.status==10" @click.stop="getgoods(goodslist.serialNo)">收货</div>
            </div>
           
          </div>
        </div>
        </div>
</template>

<script>

export default {
    props:['goodslist'],
    data () {
        return {

 
        }
    },
    methods:{
      back(){
     this.$router.back() 
    },
        gotoinfo(id){
            this.$router.push('/goods/'+id)
        },
        gotoEvaluation(id){
            this.$router.push('/pingjiadan/'+id)
        },
        getgoods(id){
            this.$emit('model',id);
        }
    }
}
</script>
 
<style lang = "less" scoped>
*{
    padding: 0;margin: 0;
}
.box-con {
  margin-top: 10px;
  background: #fff;
  .title {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;

    border-bottom: 1px solid #e4e4e4;
    box-sizing: border-box;
  }
  .box-con-b {
    width: 100vw;
    height: 104px;
    border-bottom: 1px dashed #e4e4e4;
    display: flex;
    .lll {
      padding: 15px 20px 28px;
      box-sizing: border-box;
    }
    .rrr {
      padding: 20px 0;
      box-sizing: border-box;
    }
  }
  .box-footer {
    width: 100vw;
    height: 55px;
    border-bottom: 1px solid #e4e4e4;
    padding: 13px 20px;
    box-sizing: border-box;
    div {
      float: right;
      width: 70px;
      height: 31px;
      text-align: center;
      line-height: 31px;
      background: #f1ca45;
      color: #fff;
      border-radius: 15px;
    }
  }
}
</style>